import { ApiParser, Mscf } from 'nearby-common'

export const parser = new ApiParser(process.env.NODE_ENV !== 'production')

const mscfInstance = new Mscf({ role: 'child', token: 'nearby', name: 'marketing' }) // todo:
// 这里的oa应修改成自己的应用名，如finance，customer，hr等

export const mscf = mscfInstance

export const uploadFileuRL = process.env.BASE_URL + '/common/file/uploadFile'

export const noticeType = Object.freeze([
  {
    label: '公告',
    value: 5
  },
  {
    label: '通知',
    value: 6
  }
])

export const noticeStatus = Object.freeze([
  {
    label: '作废',
    value: 1
  },
  {
    label: '已发布',
    value: 2
  },
  {
    label: '待发布',
    value: 3
  }
])
